home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
bit
/
src
/
bitmaps
/
.note
next >
Wrap
Text File
|
1994-08-01
|
703b
|
37 lines
#include <time.h>
#define DAY (24*3600)
#ifndef EVAL
#define EVAL (7*DAY) /* default 7 days reminder */
#endif
void
print_before_exit(void)
{
static char *notices[] =
{
"Bit is shareware, please don't forget to register.",
"See " BITHELP "/Registration for details.\n",
0
};
char **q = notices;
long eday = (time(0) - date_to_time(cmpldate)) / DAY;
M_info("", "CT=%ld(hr) CTM=%ld(hr) DT=%ld(day) W=%d(day)",
time(0) / 3600, date_to_time(cmpldate) / 3600, eday, EVAL / DAY);
if (EVAL <= 0)
return;
if ((time(0) - date_to_time(cmpldate)) > EVAL)
{
fputc('\n', stderr);
while (*q)
{
fprintf(stderr, "\t%s\n", *q);
q++;
}
}
}